package javabase.thread;

public class ThreadDemo_01 {

	public static void main(String[] args) {
		new Thread(new Runnable() {
			@SuppressWarnings("unused")
			String name = Thread.currentThread().getName(); // main线程
			public void run() {
				String name = Thread.currentThread().getName();
				for (int i = 0; i < 10; i++) {
					System.out.println("运行" + name + ":=" + i);
				}
			}
		}, "lzq").start();
	}

}
